menu: Stop drawing css background and border
authorTimm Bäder <mail@baedert.org>
Sun, 7 May 2017 10:47:49 +0000 (12:47 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:12 +0000 (21:27 -0400)
GtkWidget does it now

gtk/gtkmenu.c

index 4d02c87a0ebf5aecc557dd8455ee0cd0a4bdf225..7b25e51038278fb0e7507ba0748cf7aa2e2fe18f 100644 (file)
@@ -2888,21 +2888,14 @@ gtk_menu_snapshot (GtkWidget   *widget,
 {
   GtkMenu *menu;
   GtkMenuPrivate *priv;
-  GtkStyleContext *context;
   GtkAllocation allocation;
   int x, y;
 
   menu = GTK_MENU (widget);
   priv = menu->priv;
-  context = gtk_widget_get_style_context (widget);
 
   gtk_widget_get_allocation (widget, &allocation);
 
-  gtk_snapshot_render_background (snapshot, context, 0, 0,
-                                  allocation.width, allocation.height);
-  gtk_snapshot_render_frame (snapshot, context, 0, 0,
-                             allocation.width, allocation.height);
-
   if (priv->upper_arrow_visible)
     gtk_css_gadget_snapshot (priv->top_arrow_gadget, snapshot);